//
//  RootClassOfHotTopic.m
//  __PRODUCTNAME__
//
//  Created by Gollum on 16/09/20
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "RootClassOfHotTopic.h"
#import "DataOfHotTopic.h"

@implementation RootClassOfHotTopic

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [DataOfHotTopic class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<DataOfHotTopic *> *mArrayOfDataOfHotTopic = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DataOfHotTopic *dataOfHotTopic = [DataOfHotTopic modelDic:dic];
            [mArrayOfDataOfHotTopic addObject:dataOfHotTopic];
        }
        _data = mArrayOfDataOfHotTopic;
    }
}
@end
